layui.use(['table','layer'],function(){
    var layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        table = layui.table;

    /**
     * 用户列表展示
     *
     <table id="sysLogList" class="layui-table"  lay-filter="logs"></table>
     */
    var  tableIns = table.render({
        elem: '#sysLogList',
        url : ctx+'/sysLog/list',
        cellMinWidth : 95,
        page : true,
        height : "full-125",
        limits : [10,15,20,25],
        limit : 10,
        id : "userListTable",
        cols : [[
            {type: "checkbox", fixed:"left", width:50},
            {field: "id", title:'编号',fixed:"true", width:80},
            {field: 'userId', title: '操作人编号', minWidth:50, align:"center"},
            {field: 'operation', title: '操作类型', minWidth:100, align:'center'},
            {field: 'opDate', title: '操作时间', align:'center',minWidth:150},
            {field: 'opMethod', title: '操作方法', minWidth:100, align:'center'},
            {field: 'opParams', title: '操作参数', align:'center'},
            {field: 'ip', title: 'IP', align:'center'},
            {field: 'createDate', title: '创建时间', align:'center',minWidth:150},
        ]]
    });

    /*条件查询*/
    $(".search_btn").click(function () {
        //这里以搜索为例
        tableIns.reload({
            where:{//设定异步数据接口的额外参数，任意设
            }
            ,page:{
                curr:1 //重新从第 1 页开始
            }
        });
    });









})